package com.zhao.dota.bo;

import com.zhao.dota.contant.TeamConst;
import com.zhao.dota.util.SteamUtil;
import lombok.Data;

import java.time.LocalDateTime;

@Data
public class PlayerMax {

    private Integer id;

    private Integer matchId;

    private String name;

    private TeamConst team;

    private String avatar;

    private String avatarFull;

    private String steamId;

    private Boolean win;

    private LocalDateTime endTime;

    private Integer max;

    private String field;

    private String heroName;

    private String heroAvatar;

    private String heroAvatarFull;

    public void buildHeroAvatar() {
        this.heroAvatar = SteamUtil.getIconUrlByHeroName(this.heroName);
        this.heroAvatarFull = SteamUtil.getIconUrlByHeroName(this.heroName);
    }

}
